package itheima.zuoye.test8;

public class GoldenCard extends Card {
    public GoldenCard(String id, double balance) {
        super(id, balance);
    }
//按原价的8折计算输出
    @Override
    public void pay() {

        System.out.println("使用金卡支付，实际支付金额：" + getBalance() * 0.8);



    }
}
